package com.softtown.modules.sys.dto;

import com.softtown.common.validator.group.AddGroup;
import com.softtown.common.validator.group.DefaultGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 公司
 *
 * @author Dingyayong
 * @version v1.0
 * @create 2019-05-21 09:47
 **/
@ApiModel(value = "公司信息")
@Data
public class SysCompDTO implements Serializable{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "公司id")
    private Long id;

    @ApiModelProperty(value = "公司名称")
    @NotBlank(message = "{company.name.require}", groups = DefaultGroup.class)
    private String name;

    @ApiModelProperty(value = "统一社会信用代码")
    @NotBlank(message = "{company.uscc.require}", groups = AddGroup.class)
    private String uscc;

    @ApiModelProperty(value = "地址")
    @NotBlank(message = "{company.address.require}", groups = DefaultGroup.class)
    private String address;

    @ApiModelProperty(value = "电话")
    private String tel;

    @ApiModelProperty(value = "联系人")
    @NotBlank(message = "{company.contact.require}", groups = DefaultGroup.class)
    private String contact;

    @ApiModelProperty(value = "联系电话")
    @NotBlank(message = "{company.mobile.require}", groups = DefaultGroup.class)
    private String mobile;

    @ApiModelProperty(value = "企业系统管理员")
    private Long adminUserId;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "可激活用户数")
    private Integer activatableUsers;

    @ApiModelProperty(value = "更新者")
    private Long updater;

    @ApiModelProperty(value = "更新时间")
    private Date updateDate;

    @ApiModelProperty(value = "更新时间戳")
    private String updateTimestamp;
}

